<?php /* Smarty version 2.6.19, created on 2012-12-22 16:56:52
         compiled from vietcad/order.tpl.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/header.tpl.html", 'smarty_include_vars' => array('title' => 'header')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
    	<div class="content">
   			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/left.tpl.html", 'smarty_include_vars' => array('title' => 'left')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
        	<div class="cont_right">
           		<div class="main_content">
                	<h2>Thông tin khách hàng</h2>
                    <div class="details">
                         <div class="formType2">
		
        <form action="" method="post" name="formOrder" id="formOrder">
        <fieldset>
        <h2 style="background:none"><?php echo $this->_tpl_vars['messages']['cInformation']; ?>
</h2>
        <p class="text"><strong><?php echo $this->_tpl_vars['messages']['noteorder']; ?>
</strong></p>
        <p>
        <label for="name"><?php echo $this->_tpl_vars['messages']['fullname']; ?>
:</label>
        <span>(*)</span><input type="text" id="name" name="name" value="<?php if ($this->_tpl_vars['order']['name']): ?><?php if ($this->_tpl_vars['order']['name']): ?><?php echo $this->_tpl_vars['order']['name']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['authUser']): ?><?php echo $this->_tpl_vars['authUser']->getFullName(); ?>
<?php endif; ?><?php endif; ?>" />
        <?php if ($this->_tpl_vars['listerror'][0]): ?>
            <p class="error"><?php echo $this->_tpl_vars['listerror'][0]; ?>
</p>
        <?php endif; ?>
        </p>
        <p>
        <label for="email"><?php echo $this->_tpl_vars['messages']['email']; ?>
:</label>
       <span>(*)</span><input type="text" id="email" name="email" value="<?php if ($this->_tpl_vars['order']['name']): ?><?php if ($this->_tpl_vars['order']['email']): ?><?php echo $this->_tpl_vars['order']['email']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['authUser']): ?><?php echo $this->_tpl_vars['authUser']->getEmail(); ?>
<?php endif; ?><?php endif; ?>" />
        <?php if ($this->_tpl_vars['listerror'][1]): ?>
            <p class="error"><?php echo $this->_tpl_vars['listerror'][1]; ?>
</p>
        <?php endif; ?>
        </p>
        <p>
        <label for="address"><?php echo $this->_tpl_vars['messages']['address']; ?>
:</label>
        <input type="text" id="address" name="address" value="<?php if ($this->_tpl_vars['order']['name']): ?><?php if ($this->_tpl_vars['order']['address']): ?><?php echo $this->_tpl_vars['order']['address']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['authUser']): ?><?php echo $this->_tpl_vars['authUser']->getAddress(); ?>
<?php endif; ?><?php endif; ?>"/>
        </p>        
        <p>
        <label for="tel"><?php echo $this->_tpl_vars['messages']['tel']; ?>
:</label>
        <input type="text" id="tel" name="tel" value="<?php if ($this->_tpl_vars['order']['name']): ?><?php if ($this->_tpl_vars['order']['tel']): ?><?php echo $this->_tpl_vars['order']['tel']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['authUser']): ?><?php echo $this->_tpl_vars['authUser']->getTel(); ?>
<?php endif; ?><?php endif; ?>" />
        </p>
        <p>
        <label for="cell"><?php echo $this->_tpl_vars['messages']['cel']; ?>
:</label>
        <span>(*)</span><input type="text" id="cell" name="cell" value="<?php if ($this->_tpl_vars['order']['name']): ?><?php if ($this->_tpl_vars['order']['cell']): ?><?php echo $this->_tpl_vars['order']['cell']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['authUser']): ?><?php echo $this->_tpl_vars['authUser']->getTel(); ?>
<?php endif; ?><?php endif; ?>" />
        <?php if ($this->_tpl_vars['listerror'][3]): ?>
            <p class="error"><?php echo $this->_tpl_vars['listerror'][3]; ?>
</p>
        
        <?php endif; ?>
        </p>
        <h2 style="background:none"><?php echo $this->_tpl_vars['messages']['rInformation']; ?>
</h2>
        <p class="text"><strong><?php echo $this->_tpl_vars['messages']['noteorder']; ?>
</strong></p>
        <p>
        <label for="same">&nbsp;</label>
        <?php echo '
        <script type="text/javascript">
        function checkSame() {
            var f = document.formOrder;
            if(f.chkSame.checked) {
                f.rname.value = f.name.value;
                f.raddress.value = f.address.value;
                f.rtel.value = f.tel.value;
                f.rcell.value = f.cell.value;
                f.rprovince.value = f.province.value;
            } else {
                f.rname.value = \'\';
                f.raddress.value = \'\';
                f.rtel.value = \'\';
                f.rcell.value = \'\';
                f.rprovince.value = \'\';		
            }
        }
        </script>
        '; ?>

        <input class="checkbox" type="checkbox" id="chkSame" name="chkSame" value="1" onclick="javascript:checkSame();" /><?php echo $this->_tpl_vars['messages']['likecustomer']; ?>

        </p>
        <p>
        <label for="rname"><?php echo $this->_tpl_vars['messages']['fullname']; ?>
:</label>
        <span>(*)</span><input type="text" id="rname" name="rname" value="<?php echo $this->_tpl_vars['order']['rname']; ?>
" />
        <?php if ($this->_tpl_vars['listerror'][4]): ?>
            <p class="error"><?php echo $this->_tpl_vars['listerror'][4]; ?>
</p>
        <?php endif; ?>
        </p>
       
        <p>
        <label for="raddress"><?php echo $this->_tpl_vars['messages']['address']; ?>
:</label>
        <span>(*)</span><input type="text" id="raddress" name="raddress" value="<?php echo $this->_tpl_vars['order']['raddress']; ?>
"  />
        <?php if ($this->_tpl_vars['listerror'][5]): ?>
            <p class="error"><?php echo $this->_tpl_vars['listerror'][5]; ?>
</p>
        <?php endif; ?>
        </p>
        <p>
        <label for="rtel"><?php echo $this->_tpl_vars['messages']['tel']; ?>
:</label>
        <input type="text" id="rtel" name="rtel" value="<?php echo $this->_tpl_vars['order']['rtel']; ?>
" />
        </p>
        <p>
        <label for="rcell"><?php echo $this->_tpl_vars['messages']['cel']; ?>
:</label>
        <input type="text" id="rcell" name="rcell" value="<?php echo $this->_tpl_vars['order']['rcell']; ?>
" />
        </p>
        <!--<p>
        <label for="rnote"><span>*</span><?php echo $this->_tpl_vars['messages']['delivery']; ?>
</label>
        <select id="delivery" name="delivery">
        <option selected="selected" value="<?php echo $this->_tpl_vars['messages']['delivery1']; ?>
"><?php echo $this->_tpl_vars['messages']['delivery1']; ?>
</option>
        <option selected="selected" value="<?php echo $this->_tpl_vars['messages']['delivery2']; ?>
"><?php echo $this->_tpl_vars['messages']['delivery2']; ?>
</option>
        </select>
        </p>-->
        <p class="date" >				
        <label for="day"><?php echo $this->_tpl_vars['messages']['rdate']; ?>
:</label>
       <select  id="day" name="day" style="width:100px">
        <?php echo $this->_tpl_vars['listDays']; ?>

        </select>
        <select id="month" name="month" style="width:100px">
        <?php echo $this->_tpl_vars['listmonth']; ?>

        </select>
        <select  id="year" name="year" style="width:100px">
        <?php echo $this->_tpl_vars['listyear']; ?>

        </select> <span>(*)</span>
        <?php if ($this->_tpl_vars['listerror'][6]): ?>
            <p class="error"><?php echo $this->_tpl_vars['listerror'][6]; ?>
</p>
        <?php endif; ?>
        </p>
        <p class="btn"> <span class="btnType2">
        <input type="submit" id="btnLogin" name="btnLogin" title="<?php echo $this->_tpl_vars['messages']['continueorder']; ?>
" value="<?php echo $this->_tpl_vars['messages']['continueorder']; ?>
" />
        </span> <span class="btnType2">
        <input type="reset" id="reset" name="reset" title="<?php echo $this->_tpl_vars['messages']['reset']; ?>
" value="<?php echo $this->_tpl_vars['messages']['reset']; ?>
" />
        <input type="hidden" name="op" value="order" />
        <input type="hidden" name="plus" value="confirmOrder" />
        <input type="hidden" name="lang"  value="<?php echo $this->_tpl_vars['lang']; ?>
" />
        </span> </p>
        </fieldset>
        </form>
        </div>
                    </div>
                </div>
  			 </div>
   		</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/footer.tpl.html", 'smarty_include_vars' => array('title' => 'footer')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 